package com.xbongbong.saas.domain.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**结账表实体类
 * date 2021-11-22
 * @author ruansicheng
 */
@Getter
@Setter
@ToString
public class SettleAccountsEntity implements Serializable {
    private static final long serialVersionUID = 8550543403762535658L;

    /**
     * 主键
     *
     */
    private Long id;
    /**
     * 公司id
     *
     */
    private String corpid;
    /**
     * 上次结账时间
     *
     */
    private Long lastCheckOutTime;

    /**
     *
     * 结账时间
     *
     */
    private Long checkOutTime;

    /**
     *
     * 反结账时间
     *
     */
    private Long antiSettlementTime;

    /**
     *
     * 结账人ID
     *
     */
    private String checkOutUserId;

    /**
     *
     * 结账人ID
     *
     */
    private String checkOutUserName;

    /**
     *
     * 反结账人ID
     *
     */
    private String antiSettlementUserId;

    /**
     *
     * 反结账人名称
     *
     */
    private String antiSettlementUserName;

    /**
     *
     * 添加时间
     *
     */
    private Long addTime;
    /**
     *
     * 更新时间
     *
     */
    private Long updateTime;
    /**
     *
     * 删除标志
     *
     */
    private Integer del;
    /**
     *
     * 反结账标志
     *
     */
    private Integer antiSettlement;

    public SettleAccountsEntity(){

    }

    public SettleAccountsEntity(Long id, String corpid, Long lastCheckOutTime, Long checkOutTime, Long antiSettlementTime, String checkOutUserId, String checkOutUserName, String antiSettlementUserId, String antiSettlementUserName, Long addTime, Long updateTime, Integer del, Integer antiSettlement) {
        this.id = id;
        this.corpid = corpid;
        this.lastCheckOutTime = lastCheckOutTime;
        this.checkOutTime = checkOutTime;
        this.antiSettlementTime = antiSettlementTime;
        this.checkOutUserId = checkOutUserId;
        this.checkOutUserName = checkOutUserName;
        this.antiSettlementUserId = antiSettlementUserId;
        this.antiSettlementUserName = antiSettlementUserName;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.del = del;
        this.antiSettlement = antiSettlement;
    }

    public SettleAccountsEntity(String corpid, Long lastCheckOutTime, Long checkOutTime, String checkOutUserId, String checkOutUserName, Integer del, Integer antiSettlement) {
        this.corpid = corpid;
        this.lastCheckOutTime = lastCheckOutTime;
        this.checkOutTime = checkOutTime;
        this.checkOutUserId = checkOutUserId;
        this.checkOutUserName = checkOutUserName;
        this.del = del;
        this.antiSettlement = antiSettlement;
    }
}
